import {
  ArcGisMapServerImageryProvider
} from '@cesiumjs';

const tUrl = '//services.arcgisonline.com/ArcGIS/rest/services/{t}/MapServer'

export default {
  arcgisImagery() {
    const url = tUrl.replace("{t}", "World_Imagery")
    return {
      name: "arcgisImagery",
      title: "arcgis影像",
      create: () => new ArcGisMapServerImageryProvider({
        url
      })
    }
  },
  arcgisStreetMap() {
    const url = tUrl.replace("{t}", "World_Street_Map")
    return {
      name: "arcgisStreetMap",
      title: "arcgis矢量",
      create: () => new ArcGisMapServerImageryProvider({
        url
      })
    }
  }
}
